//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import com.rt.schedulenew.utils.base.CommonUtil;
//import org.apache.commons.lang3.StringUtils;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.DictScheduleRegularDefDto;
//import java.io.Serializable;
//import org.springframework.stereotype.Service;
//import com.rt.schedulebase.service.IDictScheduleRegularDefService;
//import com.rt.schedulebase.entity.DictScheduleRegularDef;
//import com.rt.schedulebase.mapper.DictScheduleRegularDefMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//@Service("DictScheduleRegularDefServiceImpl_v2")
//public class DictScheduleRegularDefServiceImpl extends ServiceImpl<DictScheduleRegularDefMapper, DictScheduleRegularDef> implements IDictScheduleRegularDefService
//{
//@Override
//    public boolean insertSelective(final DictScheduleRegularDef dictScheduleRegularDef) {
//        return this.retBool(Integer.valueOf(((DictScheduleRegularDefMapper)this.baseMapper).insert(dictScheduleRegularDef)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((DictScheduleRegularDefMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final DictScheduleRegularDef dictScheduleRegularDef) {
//        return this.retBool(Integer.valueOf(((DictScheduleRegularDefMapper)this.baseMapper).updateById(dictScheduleRegularDef)));
//    }
//
//@Override
//    public DictScheduleRegularDef selectByPrimaryKey(final String key) {
//        return (DictScheduleRegularDef)((DictScheduleRegularDefMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<DictScheduleRegularDef> getList(final DictScheduleRegularDefDto dto) {
//        final QueryWrapper<DictScheduleRegularDef> qw = (QueryWrapper<DictScheduleRegularDef>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("REGULAR_TYPE", dto.getRegularType());
//        map.put("EXAM_CLASS", dto.getExamClass());
//        qw.allEq((Map)map, false);
//        if (StringUtils.isNotBlank((CharSequence)dto.getItemCode())) {
//            final List<String> itemCodes = CommonUtil.split2List(dto.getItemCode());
//            for (final String itemCode : itemCodes) {
//                qw.like("REGULAR_CONTENT", itemCode);
//            }
//        }
//        qw.orderByAsc(new String[] { "EXAM_CLASS", "SORT_NO" });
//        final List<DictScheduleRegularDef> list = (List<DictScheduleRegularDef>)((DictScheduleRegularDefMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<DictScheduleRegularDef> getListAll() {
//        return (List<DictScheduleRegularDef>)((DictScheduleRegularDefMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final DictScheduleRegularDef dictScheduleRegularDef) {
//        final UpdateWrapper<DictScheduleRegularDef> uw = (UpdateWrapper<DictScheduleRegularDef>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("REGULAR_ID", dictScheduleRegularDef.getRegularId());
//        map.put("EXAM_CLASS", dictScheduleRegularDef.getExamClass());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictScheduleRegularDefMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final DictScheduleRegularDef dictScheduleRegularDef) {
//        final UpdateWrapper<DictScheduleRegularDef> uw = (UpdateWrapper<DictScheduleRegularDef>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("EXAM_CLASS", dictScheduleRegularDef.getExamClass());
//        map.put("REGULAR_ID", dictScheduleRegularDef.getRegularId());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictScheduleRegularDefMapper)this.baseMapper).update(dictScheduleRegularDef, (Wrapper)uw)));
//    }
//
//@Override
//    public DictScheduleRegularDef getInfo(final DictScheduleRegularDefDto dto) {
//        final QueryWrapper<DictScheduleRegularDef> qw = (QueryWrapper<DictScheduleRegularDef>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("EXAM_CLASS", dto.getExamClass());
//        map.put("REGULAR_ID", dto.getRegularId());
//        qw.allEq((Map)map, false);
//        return (DictScheduleRegularDef)((DictScheduleRegularDefMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//}
